﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FrogEngine
{
	[Flags]
	public enum PlayerIndex
	{
		One = 0,
		Two = 1,
		Three = 2,
		Four = 4
	}

	public static class PlayerIndexAdapter
	{
		public static Microsoft.Xna.Framework.PlayerIndex ToXNAPI(this PlayerIndex index)
		{
			if (index == PlayerIndex.One)
				return Microsoft.Xna.Framework.PlayerIndex.One;
			if (index == PlayerIndex.Two)
				return Microsoft.Xna.Framework.PlayerIndex.Two;
			if (index == PlayerIndex.Three)
				return Microsoft.Xna.Framework.PlayerIndex.Three;
			if (index == PlayerIndex.Four)
				return Microsoft.Xna.Framework.PlayerIndex.Four;
			return Microsoft.Xna.Framework.PlayerIndex.One;
		}
	}
}
